﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BusinessNuke.ImportBusiness.Web
{
    public class Common
    {
        public static DateTime NullDateTime = new DateTime(1990, 1, 1);
        public static decimal ToDecimal(string value)
        {
            decimal ret = 0;
            decimal.TryParse(value, out ret);
            return ret;
        }
        public static short ToShort(string value)
        {
            short ret = 0;
            short.TryParse(value, out ret);
            return ret;
        }
        public static int ToInt(string value)
        {
            int ret = 0;
            int.TryParse(value, out ret);
            return ret;
        }
        public static List<string> GetDocks()
        {
            List<string> lstDocks = new List<string>();
            lstDocks.Add("外一");
            lstDocks.Add("外二");
            lstDocks.Add("外三");
            lstDocks.Add("外四");
            lstDocks.Add("外五");
            lstDocks.Add("外六");
            lstDocks.Add("洋一");
            lstDocks.Add("洋二");
            lstDocks.Add("洋三");
            lstDocks.Add("吴淞");
            return lstDocks;
        }
    }
    
}